<template>
  <!-- 根据实际部署环境修改 editor.html 的路径 -->
  <iframe
    src="/xmer/editor.html"
    v-bind="objectOfAttrs"
    style="height: calc(100vh - 150px)"
  ></iframe>
</template>

<script>
export default {
  props: {
    iframeId: {
      type: String,
      default: "xmerEditor",
    },
  },
  data() {
    return {
      objectOfAttrs: {
        width: "100%",
        frameborder: 0,
        id: this.iframeId,
      },
    };
  },
};
</script>

<style scoped></style>
